package com.iscas.tech.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.geekidea.springbootplus.framework.common.entity.BaseEntity;
import io.geekidea.springbootplus.framework.validator.groups.Update;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 * 科技成果表
 *
 * @author yangyi
 * @since 2020-10-26
 */
@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "AtScitegach对象")
public class AtScitegach extends BaseEntity {
    private static final long serialVersionUID = 1L;

    @NotNull(message = "id不能为空", groups = {Update.class})
    @ApiModelProperty("主键ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @NotBlank(message = "成果名称不能为空")
    @ApiModelProperty("成果名称")
    private String stTitle;

    @NotBlank(message = "成果所属（填写单位名称或个人姓名）不能为空")
    @ApiModelProperty("成果所属（填写单位名称或个人姓名）")
    private String stBelong;

    @ApiModelProperty("成果参与人（多人用逗号隔开，如：张三,李四）")
    private String stActor;

    @ApiModelProperty("所在区域")
    private String stArea;

    @ApiModelProperty("联系人")
    private String ctPeople;

    @ApiModelProperty("联系电话")
    private String ctTel;

    @ApiModelProperty("联系邮箱")
    private String ctEmail;

    @ApiModelProperty("成果关键字（用作关键字检索）")
    private String stKeys;

    @ApiModelProperty("成果简介")
    private String stDetail;

    @ApiModelProperty("专利名称")
    private String ptTitle;

    @ApiModelProperty("专利号")
    private String ptNo;

    @NotNull(message = "发布人id（对应表3的人员id）不能为空")
    @ApiModelProperty("发布人id（对应表3的人员id）")
    private Integer stResid;

    @NotNull(message = "发布时间不能为空")
    @ApiModelProperty("发布时间")
    private Date stRestime;

    @NotNull(message = "是否审核（0:未审核(默认) 1:已审核）不能为空")
    @ApiModelProperty("是否审核（0:未审核(默认) 1:已审核）")
    private Integer adStatus;

    @ApiModelProperty("删除状态（1存在，0刪除）")
    private Integer delstatus;

    @ApiModelProperty("创建人")
    private Integer createtitle;

    @ApiModelProperty("提交交易创建时间")
    private Date createtime;

}
